﻿@model _PLATFORM.DATA.SYSTEM_PRODUCT

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SYSTEM_PRODUCT</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PRODUCT_ID, "PRODUCT")
        </div>
        <div class="editor-field">
            @Html.ListBox("PRODUCT_ID", ViewBag.PRODUCT_ID as SelectList, new { style ="height:300px" })
            @Html.ValidationMessageFor(model => model.PRODUCT_ID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SYSTEM_ID, "SYSTEM")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SYSTEM_ID", " - Select One - ")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PRODUCT_COUNT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PRODUCT_COUNT)
            @Html.ValidationMessageFor(model => model.PRODUCT_COUNT)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
